<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CountryPlot
 *
 * @ORM\Table(name="country_plot")
 * @ORM\Entity
 */
class CountryPlot
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="number", type="integer", nullable=false)
     */
    protected $number;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Country
     *
     * @ORM\ManyToOne(targetEntity="Entity\Country")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
     * })
     */
    protected $country;

    /**
     * @var \Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id_owner", referencedColumnName="id")
     * })
     */
    protected $userOwner;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set number
     *
     * @param integer $number
     * @return CountryPlot
     */
    public function setNumber($number)
    {
        $this->number = $number;
    
        return $this;
    }

    /**
     * Get number
     *
     * @return integer 
     */
    public function getNumber()
    {
        return $this->number;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return CountryPlot
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set country
     *
     * @param \Entity\Country $country
     * @return CountryPlot
     */
    public function setCountry(\Entity\Country $country = null)
    {
        $this->country = $country;
    
        return $this;
    }

    /**
     * Get country
     *
     * @return \Entity\Country 
     */
    public function getCountry()
    {
        return $this->country;
    }

    /**
     * Set userOwner
     *
     * @param \Entity\User $userOwner
     * @return CountryPlot
     */
    public function setUserOwner(\Entity\User $userOwner = null)
    {
        $this->userOwner = $userOwner;
    
        return $this;
    }

    /**
     * Get userOwner
     *
     * @return \Entity\User 
     */
    public function getUserOwner()
    {
        return $this->userOwner;
    }
}
